package com.ecode.sample.event;

import com.ecode.common.core.domain.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wqh
 * @date 2022年07月30日 23:23
 */
@RestController
@RequestMapping("test")
public class TestController {
    @Resource
    private EventService orderService;


    @GetMapping("order")
    public R test(@RequestParam("msg") String msg) {
        return R.ok(orderService.pushMsg(msg));
    }
}
